<%@page import="org.apache.tiles.TilesContainer"%>
<%@page import="org.apache.tiles.servlet.context.ServletUtil"%>
<% request.setCharacterEncoding("euc-kr");%>
<% response.setContentType("text/html; charset=euc-kr");%>
<%@page import="hk.mrtomato.help.Command"%>
<%@page import="hk.mrtomato.control.Action"%>
<%@page import="hk.mrtomato.control.IndexAction"%>
<%@page import="hk.mrtomato.control.ErrorAction"%>
<%@page import="hk.mrtomato.help.ActionForward"%>
<%@page import="hk.mrtomato.control.MrRegiFormAction"%>
<%@page import="hk.mrtomato.control.MrLoginAction"%>
<%@page import="hk.mrtomato.control.MrRegiAction"%>
<%@page import="hk.mrtomato.control.CalendarAction"%>

<%@page import="hk.mrtomato.control.GoWriteDateAction"%>
<%@page import="hk.mrtomato.control.WriteDateAction"%>
<%@page import="hk.mrtomato.control.DataListAction"%>
<%@page import="hk.mrtomato.control.GoModifyDateAction"%>
<%@page import="hk.mrtomato.control.UpdateDateAction"%>
<%@page import="hk.mrtomato.control.DeleteDateAction"%><html>
<head>
<title>Insert title here</title>
</head>
<body>
<%
		Command command = new Command(request);	
		Action comAction = null;	
		
		if(command.getCommand().equalsIgnoreCase(null)){
			comAction = new ErrorAction();
		}else if(command.getCommand().equalsIgnoreCase("board")){		
			comAction = new IndexAction();		
		}else if(command.getCommand().equalsIgnoreCase("login")) {
			comAction = new MrLoginAction();
		}else if(command.getCommand().equalsIgnoreCase("writedate")) {
			comAction = new GoWriteDateAction();
		}else if(command.getCommand().equalsIgnoreCase("writedateform")) {
			comAction = new WriteDateAction();
		}else if(command.getCommand().equalsIgnoreCase("datelist")) {
			comAction = new DataListAction();
		}else if(command.getCommand().equalsIgnoreCase("gomodifydata")) {
			comAction = new GoModifyDateAction();
		}else if(command.getCommand().equalsIgnoreCase("modifyDateForm")) {
			comAction = new UpdateDateAction();
		}else if(command.getCommand().equalsIgnoreCase("deletedate")) {
			comAction = new DeleteDateAction();
		}
		ActionForward forward =comAction.execute(request,response);
		forward.go(request,response);
%>
</body> 
</html>